package com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.check.checkaddr;

import cn.hutool.json.JSONObject;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseService;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.utils.requestutil.HttpRequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class CheckaddrService extends BaseService {

	private static final Logger logger = LoggerFactory.getLogger(CheckaddrService.class);


	/**
	 * 巡检点类型树形列表
	 * @param
	 * @return
	 */
	public RespEntity checkaddrTypeList(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","checkaddrTypeList","checkaddr");
	}

	/**
	 * 巡检点列表
	 * @param
	 * @return
	 */
	public RespEntity checkaddrListPage(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","checkaddrListPage","checkaddr");
	}

	/**
	 * 巡检点详情
	 * @param
	 * @return
	 */
	public RespEntity checkaddrDetail(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","checkaddrDetail","checkaddr");
	}

	/**
	 * 巡检点新增
	 * @param
	 * @return
	 */
	public RespEntity checkaddrAdd(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","checkaddrAdd","checkaddr");
	}

	/**
	 * 巡检点修改
	 * @param
	 * @return
	 */
	public RespEntity checkaddrUpdate(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","checkaddrUpdate","checkaddr");
	}

	/**
	 * 巡检点删除
	 * @param
	 * @return
	 */
	public RespEntity checkaddrDelete(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","checkaddrDelete","checkaddr");
	}

	/**
	 * 字典组查询
	 * @param
	 * @return
	 */
	public RespEntity dictList(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","dictList","checkaddr");
	}

	/**
	 * 巡检点树形列表
	 * @param
	 * @return
	 */
	public RespEntity checkaddrTreeList(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"checkJava","checkaddrTreeList","checkaddr");
	}

}
